package jp.seraph.same.message;

import jp.seraph.jsade.model.JointIdentifier;
import jp.seraph.same.model.MotionSessionModel;

public class MessageUtil {
    private MessageUtil() {

    }

    public static String cannotUseNegativeInteger() {
        return "Please input positive number";
    }

    public static String duplicateChildName(String aName){
        return String.format("ChildName(= %s) is already used", aName);
    }

    public static String duplicateElementName(String aName) {
        return String.format("ElementName(= %s) is already used", aName);
    }

    public static String duplicateMotionName(String aName) {
        return String.format("MotionName(= %s) is already used", aName);
    }

    public static String cannotUseEmptyString() {
        return "cannot use empty String";
    }

    public static String nosupportedJointIdentifier(JointIdentifier aIdentifier) {
        return String.format("The JointIdentifier(=%s) is not supported.", aIdentifier.toJointName());
    }

    public static String illegalUserObject(Object aObject) {
        return String.format("Illegal UserObject(=%s) is set.", aObject.getClass().toString());
    }

    public static String sessionNotFound(MotionSessionModel aSession){
        return sessionNotFound(aSession.getName());
    }

    public static String sessionNotFound(String aSession){
        return String.format("session(=%s) is not found in MotionModel", aSession);
    }

    public static String motionNotFound(String aMotionName){
        return String.format("Motion(=%s) is not found in MotionManagerModel", aMotionName);
    }
}
